package com.hao.eduorder.client;

import com.hao.commonutils.ordervo.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author chenwenhao
 * @version 1.0.0
 * @ClassName EduClient.java
 * @createTime 2021/1/20,20:46
 * @Description
 */
@Component
@FeignClient("service-edu")
public interface EduClient {

    /**
     * 获取课程信息秩序
     *
     * @param id id
     * @return {@link CourseWebVoOrder}
     */
    @PostMapping("/eduservice/coursefront/getCourseInfoOrder/{id}")
    public CourseWebVoOrder getCourseInfoOrder(@PathVariable("id") String id);
}
